package inventory.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxt
 * @since 2019-11-24
 */
public class Repository extends Model<Repository> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "repository_id", type = IdType.UUID)
    private String repositoryId;
    private String repositoryName;
    /**
     * Լ
     */
    private String belongingStatus;
    private String roleId;
    private String userId;


    public String getRepositoryId() {
        return repositoryId;
    }

    public void setRepositoryId(String repositoryId) {
        this.repositoryId = repositoryId;
    }

    public String getRepositoryName() {
        return repositoryName;
    }

    public void setRepositoryName(String repositoryName) {
        this.repositoryName = repositoryName;
    }

    public String getBelongingStatus() {
        return belongingStatus;
    }

    public void setBelongingStatus(String belongingStatus) {
        this.belongingStatus = belongingStatus;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    protected Serializable pkVal() {
        return this.repositoryId;
    }

    @Override
    public String toString() {
        return "Repository{" +
        ", repositoryId=" + repositoryId +
        ", repositoryName=" + repositoryName +
        ", belongingStatus=" + belongingStatus +
        ", roleId=" + roleId +
        ", userId=" + userId +
        "}";
    }
}
